package com.icen.utils.baidu.loc;

public class BaiduLocInfo {

	private BaiduLocInfo() {
	}

	private static BaiduLocInfo mBaiduLocInfo = null;

	public static BaiduLocInfo getInstance() {
		if (mBaiduLocInfo == null) {
			mBaiduLocInfo = new BaiduLocInfo();
		}
		return mBaiduLocInfo;
	}

	// 获取定位信息
	private String locTime; // 定位时间
	private int locType; // ErrorCode
	// 获取经纬度坐标
	private double latitude; // 纬度
	private double longitude; // 经度
	// 获取定位精度
	private float radius; // 半径,单位:米
	// 获取文字描述的地址
	private String addressStr; // 反地理编码
	private String province; // 省份
	private String city; // 城市
	private String district; // 区县
	// 获取手机方向信息
	private float direction; // //手机方向,范围:0-360,手机上部正朝向北的方向为0方向

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(">>>>>>>>>>>>>>>>>>>>[BaiduLocInfo]<<<<<<<<<<<<<<<<<<<<\n");
		sb.append("定位时间(LocTime):" + this.locTime + "///");
		sb.append("异常码(LocType):" + locType + "///");
		sb.append("纬度(Latitude):" + latitude + "///");
		sb.append("经度(Longitude):" + longitude + "///");
		sb.append("半径(Radius):" + radius + "///");
		sb.append("地址(AddressStr):" + addressStr + "///");
		sb.append("省份(Province):" + province + "///");
		sb.append("城市(City):" + city + "///");
		sb.append("区县(District):" + district + "///");
		sb.append("方向(Direction):" + direction);
		return sb.toString();
	}

	public String getLocTime() {
		return locTime;
	}

	public void setLocTime(String locTime) {
		this.locTime = locTime;
	}

	public int getLocType() {
		return locType;
	}

	public void setLocType(int locType) {
		this.locType = locType;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public float getRadius() {
		return radius;
	}

	public void setRadius(float radius) {
		this.radius = radius;
	}

	public String getAddressStr() {
		return addressStr;
	}

	public void setAddressStr(String addressStr) {
		this.addressStr = addressStr;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public float getDirection() {
		return direction;
	}

	public void setDirection(float direction) {
		this.direction = direction;
	}

}
